package com.chart.chart.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.chart.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChartConfigsNew  extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 参数主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 图表名称
     */
    private String configName;


    private Long chartTypeId;


    @TableField(exist = false)
    private String chartTypeName;


    @TableField(exist = false)
    private List<Map<String, Object>> dataLists;

    @TableField(exist = false)//数据库不存在这个字段

    private List sameAddrInterfaces;
    /**
     * 图表键值
     */
    private String configValue;

    /**
     * 图片地址
     */
    private String photoUrl;

    /**
     * 模板地址
     */
    private String templateUrl;

    /**
     * 1:3D  2:map
     */
    private Integer configType;

    /**
     * 参数键值
     */
    private Integer dataType;

    /**
     * 地图数据
     */
    private String mapData;

    /**
     * 0 启用  1不用
     */
    private Integer status;

    /**
     * 0有图例 1无图例
     */
    private Integer chartLegend;

    /**
     * 0 免费  1收费
     */
    private Integer isFree;

    /**
     * 用法
     */
    private String configUsage;

    /**
     * 案例
     */
    private String configCase;

    /**
     * 示例图
     */
    private String caseUrl;

    private Integer sort;

    @TableField(exist = false)
    private String name;

    //照片路径
    private String photoUrlSecondary;

    //文本描述
    private String configText;

    private String windowText;

    private String uniList;

    private Integer sign ; // 默认值为0
}
